class Committee < ActiveRecord::Base

  has_many :meetings, :order => "date DESC"
  has_many :committee_memberships
  has_many :councillors, :through => :committee_memberships

  def self.stem_name( name_to_stem )
    if name_to_stem =~ /- This Committee has been [Dd]isestablished/
      name_to_stem = name_to_stem.sub(/- This Committee has been [Dd]isestablished/, "")
    end   
    return name_to_stem 
  end
end
